#ifndef HPLCAUTOSAMPLERBASICCONTROLDEVICEPAGE_H
#define HPLCAUTOSAMPLERBASICCONTROLDEVICEPAGE_H

#include <QWidget>
#include <QLabel>
#include <QLineEdit>
#include <QPushButton>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QCloseEvent>

#include "moduleid.h"

class HplcAutoSamplerBasicControlDevicePage : public QWidget
{
    Q_OBJECT
public:
    explicit HplcAutoSamplerBasicControlDevicePage(ModuleID id, QWidget *parent = nullptr);
    virtual ~HplcAutoSamplerBasicControlDevicePage() override;

    void setupUI();

public slots:
    void onParseCompleted(int id, const QVariant &var);

protected:
    virtual void closeEvent(QCloseEvent *event) override;

private:
    ModuleID m_moduleId;

    // 分析时长
    QLabel *m_lbAnalysisTime;
    QLabel *m_lbAnalysisTime_colon[2];
    QLineEdit *m_leAnalysisTime_hour;
    QLineEdit *m_leAnalysisTime_minute;
    QLineEdit *m_leAnalysisTime_second;
    QPushButton	*m_pbP_AnalysisTime;
    QPushButton	*m_pbSP_AnalysisTime;
    QPushButton	*m_pbSA_AnalysisTime;
    QHBoxLayout *hblAnalysisTime;

    // loopVolume
    QLabel *m_lbLoopVolume;
    QLineEdit *m_leLoopVolume;
    QPushButton	*m_pbP_LoopVolume;
    QPushButton	*m_pbSP_LoopVolume;
    QHBoxLayout *hblLoopVolume;
signals:

public slots:
};

#endif // HPLCAUTOSAMPLERBASICCONTROLDEVICEPAGE_H
